package cse474_MultiThreadedHTTPServer.Logger;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class ThreadInfo {
	private int threadId;
	private String dateStart = "";
	private long execTime;
	private String requestHeader = "";
	private String responseHeader = "";
	private String response = "";
	
	public ThreadInfo(int threadId, long start,long exec, String requestHeader, String responseHeader, String response)
	{
		DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
		this.threadId = threadId;
		this.dateStart = dateFormat.format(new Date(start));
		this.execTime = exec;
		this.requestHeader = requestHeader;
		this.responseHeader = responseHeader;
		this.response = response;
	}
	
	public int getThreadId()
	{
		return this.threadId;
	}
	
	public String getResponseHeader()
	{
		return this.responseHeader;
	}
	
	public String getRequestHeader()
	{
		return this.requestHeader;
	}
	
	public String getResponse()
	{
		return this.response;
	}
	
	public String getDateStart()
	{
		return this.dateStart;
	}
	
	public int getExecTime()
	{
		return (int)this.execTime;
	}
	
}
